import {
	http
} from '@/common/service.js'

/**
 * 申请报销的流程
 */
const askExpense = (data) => {
	const {
		applicant,
		expensesRemarks,
		expensesMoney,
		expensesName,
		expensesChanceId,
		expensesContractId,
	} = data
	return http.post('/xy/xySysExpenses/add', {
		applicant,
		expensesRemarks,
		expensesMoney,
		expensesName,
		expensesChanceId,
		expensesContractId,
	})
}

/**
 * 获取项目机会列表
 */
const getBussinessChanceList = () => {
	return http.get('/xy/xyBcBussinessChance/list')
}

/**
 * 获取合同列表
 */
const getContractList = () => {
	return http.get('/xy/xyCmContract/list')
}
	
export default {
	askExpense,
	getBussinessChanceList,
	getContractList
}
